package com.zhuss.car.db.dao.ext;

import com.zhuss.car.db.entity.Driver;
import com.zhuss.bean.bo.car.driver.SearchDriverBo;
import com.zhuss.bean.vo.car.driver.ListDriverVo;
import com.zhuss.bean.vo.car.driver.DetailDriverVo;
import java.util.List;
import org.apache.ibatis.annotations.*;
import com.zhuss.car.db.dao.gen.*;

/**
 * @description: 司机数据库Dao
 * @author: zhushanshuo
 * @create: Mon Dec 21 13:31:45 CST 2020
 **/

@Mapper
public interface DriverDao extends DriverMapper {

	void create(Driver record);

	void delete(Driver record);

	List<Driver> listAll();

	List<Driver> listById(@Param("driverIdList") List<Long> driverIdList);

	List<Driver> listByName(@Param("driverNo") String driverNo);

	List<ListDriverVo> list(SearchDriverBo bo);

	Integer countList(SearchDriverBo bo);

	DetailDriverVo detail(@Param("driverId") Long driverId);

	int trainByDriverId(@Param("driverId") Long driverId);

	List<ListDriverVo> selectByCompanyId(@Param("companyId") Long companyId);

	Integer countDriverByCompanyId(@Param("companyId") Long companyId, @Param("status") Integer status);
}
